<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>推广中心</title>
		<script src="__INDEX__/js/mui.min.js"></script>
		<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
		<link rel="stylesheet" href="__INDEX__/css/style.css" />
		<link rel="stylesheet" href="__INDEX__/css/mall.css" />
		<style>
	.record_list {
	    background: white;
	    text-align: center;
	}
	.pagination{
		margin-top: 5px;
		float: right;
	}
	
	.pagination>li{
		float: left;
	    width: 30px;
	    height: 30px;
	    font-size: 18px;
	    border: 1px solid #e1dfdf;
	    border-radius: 5px;
	    line-height: 30px;
	    text-align: center;
	    background: white;
	    margin-right: 7px;
	}
	.pagination .active{
		background-color: #42A5F7;
		color: white;
	}
</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav glj_bar_nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="JavaScript:history.go(-1)"></a>
			<h1 class="mui-title">推广中心</h1>
		</header>
		<div class="mui-content tgewm_content">
			<div class="liansd_tjbox">
				<div class="liandxq_top" id="friend-name"> 
					<a href="{:url('member/tglist')}">
						<p class="mymem_num"><em>{$counts}</em>人</p>
						<p>我的会员</p>
					</a>
				</div>
				<ul class="mymem_pribox clearfix">
					<li>
						<p class="mym_jrsj">{$today_glj}</p>
						<p>今日赏金收入</p>
					</li>
					<li>
						<p class="mym_jrsj" id="total_money">{$total_glj}</p>
						<p>累计赏金收入</p>
					</li>
				</ul>
			</div>
			{if $info_user['is_fx']==0}
			<div class="tgerweim" style=" width: 200px; height: 200px; border: unset;padding-top: 20px;">
				<div><span style="font-size: 24px;margin-left: 25%;">无分享资格</span></div>
				<br />
				<a href="{:url('open_fx')}"><div><span style="font-size: 24px;color:red;margin-left: 25%;">点击开通</span></div></a>
			</div>
			{else}
			<ul class="mym_jrlist">
				<li class="bt clearfix">
					<div class="left" style="text-align: center;">收入来源</div>
					<div class="center" style="line-height: normal;">日期</div>
					<div class="right">鼓励金收入</div>
				</li>
				{foreach name="loglist" item="log"}
				<li class="clearfix">
					<div class="left">{$log.message}</div>
					<div class="center">{$log.add_time|substr=0,10}</div>
					<div class="right">{$log.balance}</div>
				</li>
				{/foreach}
			</ul>
			<div class="fenye" style="display: block;">
				{$loglist->render()}
			</div>
			{/if}
	</div>
	</body>

</html>
{include file="public/footer" /}
<script src="__PUBLIC__/static/js/jquery.form.js"></script>
<script src="__PUBLIC__/static/js/jquery.qrcode.js"></script>
<script src="__PUBLIC__/static/js/utf.js"></script>
<script>
	$("#qrcode").qrcode({
		render: "canvas", //设置渲染方式，有table和canvas，使用canvas方式渲染性能相对来说比较好
		text: "{$info_user['code_url']}",
		width: "200", //二维码的宽度
		height: "200", //二维码的高度
		background: "#ffffff", //二维码的后景色
		foreground: "#000000", //二维码的前景色
		src: "{$info_user['logo']}" //二维码中间的图片
	});
</script>